package com.bt7274.controller;

import com.bt7274.grace.result.GraceJSONResult;
import com.bt7274.service.CategoryService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Data 2025/5/28 11:16
 * @Author hp
 * @Version 1.0
 * @Description CategoryController
 */
@RestController
@RequestMapping("category")
public class CategoryController {
    @Resource
    private CategoryService categoryService;

    @RequestMapping("list")
    public GraceJSONResult list(){
        return GraceJSONResult.ok(categoryService.queryAll());
    }
}
